Dictionaries on AC 0 RAMs : Query Time Θ ( √ log n / log log n ) is Necessary and Sufficient
نویسندگان
چکیده
In this paper we consider solutions to the dictionary problem on AC RAMs, i.e. random access machines where the only restriction on the finite instruction set is that all computational instructions are in AC. Our main result is a tight upper and lower bound of Θ( √ log n/ log log n) on the time for answering membership queries in a set of size n when reasonable space is used for the data structure storing the set; the upper bound can be obtained using O(n) space, and the lower bound holds even if we allow space 2 . Furthermore, the lower bound holds even for static dictionaries, while the upper bound holds also for dynamic dictionaries; insertion and deletions can be accommodated in expected amortized time Θ( √ log n/ log log n). Several variations of this bound is also obtained, including tight upper and lower bounds on the storage space if the query time must be constant and bounds valid for nonAC RAMs if the execution time of an instruction computing a function is measured as the minimal depth of a polynomially sized unbounded fan-in circuit computing the function. We refer to this model as the Circuit RAM. As an example of the latter, we show that any RAM instruction set which permits a linear space, constant query time solution to the static dictionary problem must have an instruction of depth Ω(logw/ log logw), where w is the word size of the machine (and log the size of the universe). This matches the depth of multiplication and integer division, used in the two level hashing scheme of Fredman, Komlós and Szemerédi.
منابع مشابه
Static Dictionaries on AC0 RAMs: Query Time Theta(sqrt(log n/log log n)) is Necessary and Sufficient
In this paper we consider solutions to the static dictionary problem on ACo RAMs, i.e. random access machines where the only restriction on theJinite instruction set is that all computationcil instructions are in ACO. Our main result is a tight upper and lower bound of 0 (Jlog n / log log n ) on the time for (answering membership queries in a set of size n when reasonable space is used for the ...
متن کاملTrans-Dichotomous Algorithms Without Multiplication - Some Upper and Lower Bounds
We show that on a RAM with addition, subtraction, bitwise Boolean operations and shifts, but no multiplication, there is a trans-dichotomous solution to the static dictionary problem using linear space and with query time √ log n(log log n)1+o(1). On the way, we show that two w-bit words can be multiplied in time (logw)1+o(1) and that time Ω(logw) is necessary, and that Θ(log logw) time is nece...
متن کاملLow Redundancy in Static Dictionaries with Constant Query Time
A static dictionary is a data structure storing subsets of a finite universe U , answering membership queries. We show that on a unit cost RAM with word size Θ(log |U |), a static dictionary for n-element sets with constant worst case query time can be obtained using B+O(log log |U |)+o(n) bits of storage, where B = dlog2 (|U| n )e is the minimum number of bits needed to represent all nelement ...
متن کاملLower Bounds for Static Dictionaries on RAMs with Bit Operations But No Multiplication
We consider solving the static dictionary problem with n keys from the universe f0; : : : ; m?1g on a RAM with direct and indirect addressing, conditional jump, addition, bitwise Boolean operations, and arbitrary shifts (a Practical RAM). For any > 0, tries yield constant query time using space m , provided that n = m o(1). We show that this is essentially optimal: Any scheme with constant quer...
متن کاملA Compressed-Gap Data-Aware Measure for Indexable Dictionaries
We consider the problem of building a compressed fully-indexable dictionary over a set S of n items out of a universe U = {0, ..., u − 1}. We use gap-encoding combined with entropy compression in order to reduce the space of our structures. Let H 0 be the zero-order empirical entropy of the gap stream. We observe that nH 0 ∈ o(gap) if the gaps are highly compressible, and prove that nH 0 ≤ n lo...
متن کامل